{#
Copyright (c) 2020 Andy Zhou
MIT License
#}
{% extends 'base.html' %}
{% from 'bootstrap/form.html' import render_form %}
{% block title %} Flog - {{ _("Login") }} {% endblock %}
{% block styles %}
    {{ super() }}
    <style>
        .highlight {
            font-size: 1.15em;
            margin: 20px;
            padding: 15px;
            background-color: rgba(256, 220, 0, 0.35);
            border-radius: 10px;
        }
    </style>
{% endblock styles %}
{% block page_content %}
    <h1 class="display-4">{{ _("Login") }}</h1>
    <p class="highlight">
        {{ _("New user?") }}
        <a href="{{ url_for('auth.register') }}">
            {{ _("Click here to register") }}</a>
    </p>
    <div>
        {{ render_form(form, action=request.full_path) }}
    </div>
    <p>
        <a href="{{ url_for('user.forget_password') }}">
            {{ _("Forget your password?") }}
        </a>
    </p>
{% endblock page_content %}